package org.geektimes.projects.user.oauth2;

/**
* open authentication 2认证异常  
* @author : lsq
*/
public class OAuth2Exception extends RuntimeException {

	/**
	 * 第三方授权应用名称 如微信 码云
	 */
	private String originName;


	public OAuth2Exception(String originName , String msg , Throwable throwable){
		super(msg , throwable);
		this.originName = originName;
	}


	public OAuth2Exception(String originName, Throwable throwable){
		super(null, throwable);
		this.originName = originName;
	}

	public OAuth2Exception(String originName, String msg){
		super(msg, null);
		this.originName = originName;
	}

	public String getOriginName() {
		return originName;
	}

	public void setOriginName(String originName) {
		this.originName = originName;
	}
}
